-- GENERATED SPELL FOR [Veesha Blazeweaver] --


function spell0_32946(pUnit, Event) --@Conjure Toasty Fire,n/a--
pUnit:FullCastSpellOnTarget(62823,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32946', 1000, 1)
end

function spell1_32946(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(61909,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32946', 9000, 1)
end

function spell2_32946(pUnit, Event) --@Melt Ice,n/a--
pUnit:FullCastSpellOnTarget(64528,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32946', 11000, 1)
end

function Sorts_32946(pUnit, Event)
local choix_sorts_32946 = math.random(0, 2)
if choix_sorts_32946 == 0 then
pUnit:RegisterEvent('spell0_32946', 1, 1)
end
if choix_sorts_32946 == 1 then
pUnit:RegisterEvent('spell1_32946', 1, 1)
end
if choix_sorts_32946 == 2 then
pUnit:RegisterEvent('spell2_32946', 1, 1)
end
end

function mob32946_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32946', math.random(1500, 3000), 1)
end

function mob32946_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32946_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32946_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32946, 1, 'mob32946_Action')
RegisterUnitEvent(32946, 2, 'mob32946_Leave')
RegisterUnitEvent(32946, 3, 'mob32946_Kill')
RegisterUnitEvent(32946, 4, 'mob32946_Die')
